<?php
$adminName = trim($_POST['adminName']);
$boy = trim($_POST['boy']);
$girl = trim($_POST['girl']);
$boyimg = trim($_POST['boyimg']);
$girlimg = trim($_POST['girlimg']);
$startTime = trim($_POST['startTime']);
include_once 'connect.php';

$sql = "update text set startTime = '$startTime', girlimg = '$girlimg' , boyimg = '$boyimg', girl = '$girl' , boy = '$boy' ";
$result = mysqli_query($connect, $sql);
if ($result) {
    echo "<script>alert('更新成功');location.href = 'Set.php';</script>";
} else {
    echo "<script>alert('更新失败');history.back();</script>";
}